package com.examination.system.administration;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 寇淇芮
 */
@Data
@ToString
@Entity
@Table(name = AdministrationTableName.NATION)
@GenericGenerator(name = "nationId-uuid", strategy = "assigned")
@ApiModel
public class Nation implements Serializable {

    @Id
    @Column(length = 32)
    @ApiModelProperty(value = "民族的id",example = "id")
    @GeneratedValue(generator="nationId-uuid")
    private String id;
    @ApiModelProperty(value = "民族的名字")
    private String nation;
}
